Realized g_node_depth is broken, and that it's not worth being consistent
authorJonathan Blandford <jrb@redhat.com>
Mon, 22 Oct 2001 19:19:27 +0000 (19:19 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Mon, 22 Oct 2001 19:19:27 +0000 (19:19 +0000)
Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
g_node_depth is broken, and that it's not worth being consistent
with it.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktreestore.c

index aed7aa0fbad450603a4e0d20053573e2c30addd1..fa6d343192e52982d0b41e72cdeca980a978d847 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+       g_node_depth is broken, and that it's not worth being consistent
+       with it.
+
 2001-10-22  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
index aed7aa0fbad450603a4e0d20053573e2c30addd1..fa6d343192e52982d0b41e72cdeca980a978d847 100644 (file)
@@ -1,3 +1,9 @@
+Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+       g_node_depth is broken, and that it's not worth being consistent
+       with it.
+
 2001-10-22  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
index aed7aa0fbad450603a4e0d20053573e2c30addd1..fa6d343192e52982d0b41e72cdeca980a978d847 100644 (file)
@@ -1,3 +1,9 @@
+Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+       g_node_depth is broken, and that it's not worth being consistent
+       with it.
+
 2001-10-22  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
index aed7aa0fbad450603a4e0d20053573e2c30addd1..fa6d343192e52982d0b41e72cdeca980a978d847 100644 (file)
@@ -1,3 +1,9 @@
+Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+       g_node_depth is broken, and that it's not worth being consistent
+       with it.
+
 2001-10-22  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
index aed7aa0fbad450603a4e0d20053573e2c30addd1..fa6d343192e52982d0b41e72cdeca980a978d847 100644 (file)
@@ -1,3 +1,9 @@
+Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+       g_node_depth is broken, and that it's not worth being consistent
+       with it.
+
 2001-10-22  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
index aed7aa0fbad450603a4e0d20053573e2c30addd1..fa6d343192e52982d0b41e72cdeca980a978d847 100644 (file)
@@ -1,3 +1,9 @@
+Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+       g_node_depth is broken, and that it's not worth being consistent
+       with it.
+
 2001-10-22  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
index aed7aa0fbad450603a4e0d20053573e2c30addd1..fa6d343192e52982d0b41e72cdeca980a978d847 100644 (file)
@@ -1,3 +1,9 @@
+Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+       g_node_depth is broken, and that it's not worth being consistent
+       with it.
+
 2001-10-22  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
index 25cc9e32db05cb3016f93cc671ec0ee5c8254d2e..fca11bf7bbd9ee97b20909136ae57a5df30537eb 100644 (file)
@@ -1316,7 +1316,7 @@ gtk_tree_store_is_ancestor (GtkTreeStore *tree_store,
  * @tree_store: A #GtkTreeStore
  * @iter: A valid #GtkTreeIter
  * 
- * Returns the depth of @iter.  This will be 1 for anything on the root level, 2
+ * Returns the depth of @iter.  This will be 0 for anything on the root level, 1
  * for anything down a level, etc.
  * 
  * Return value: The depth of @iter
@@ -1328,10 +1328,9 @@ gtk_tree_store_iter_depth (GtkTreeStore *tree_store,
   g_return_val_if_fail (GTK_IS_TREE_STORE (tree_store), 0);
   g_return_val_if_fail (VALID_ITER (iter, tree_store), 0);
 
-  return g_node_depth (G_NODE (iter->user_data)) - 1;
+  return g_node_depth (G_NODE (iter->user_data)) - 2;
 }
 
-
 /**
  * gtk_tree_store_clear:
  * @tree_store: @ #GtkTreeStore